<?php
/**
 * Site URL helper
 */
class Helper_SiteUrl
{
    public $view;
    
    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }
    
    public function siteUrl()
    {
        $protocol=$_SERVER['SERVER_PORT']==443 ? 'https' : 'http';
        $host=$_SERVER['HTTP_HOST'];
        
        return $protocol.'://'.$host;
    }
}